package com.ruoyi.labdanger.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ruoyi.labdanger.domain.LabApplyOccupation;
import com.ruoyi.labdanger.service.ILabApplyOccupationDetailsService;
import com.ruoyi.labdata.service.EndTaskListener;
@Component
public class OccupationEndTaskListener extends EndTaskListener<LabApplyOccupation>{
	@Autowired
	private ILabApplyOccupationDetailsService labApplyOccupationDetailsService;

	@Override
	public int doTask(Long instanceId) {
		return labApplyOccupationDetailsService.finishUpdateStatus(instanceId);
	}

}
